package com.youen.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Dell on 2018/9/5.
 */
@Data
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@MappedSuperclass
public class BaseEntity implements  Serializable {

    private static final long serialVersionUID = 858294042419172707L;

    /**
     * 创建者
     */
    @JsonIgnore
    @Column(name = "INSERT_USER")
    private String insertUser;
    /**
     * 创建时间
     */
    @JsonIgnore
    @Column(name = "INSERT_TIME")
    private Date insertTime;
    /**
     * 修改者
     */
    @JsonIgnore
    @Column(name = "UPDATE_USER")
    private String updateUser;
    /**
     * 修改时间
     */
    @JsonIgnore
    @Column(name = "UPDATE_TIME")
    private Date updateTime;

}
